package com.cristina.attention.feign;

import com.cristina.attention.entity.Message;
import com.cristina.attention.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author by superman
 */
@FeignClient("attention-web")
public interface MessageFeignService {

    /**
     * 保存私聊消息历史记录
     * @param message
     * @return
     */
    @PostMapping(value = "core/message/syncSimpleMessageRecord")
    R syncSimpleMessageRecord(@RequestBody String message);

    /**
     * 保存群聊消息历史记录
     * @param message
     * @return
     */
    @PostMapping(value = "core/message/syncGroupMessageRecord")
    R syncGroupMessageRecord(@RequestBody String message);
}
